#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>

int main()
{
	int i = 0;
	scanf("%d", &i);
	printf("%lf\n", log10(i));
	return 0;
}